from selenium import webdriver
from selenium.webdriver.common.by import By
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Edge()
driver.get('https://www.baidu.com/')
# jp=driver.find_element(By.ID,'kw')
# jp.send_keys('web端ui自动化设置')
# jp.send_keys(Keys.ENTER)
# time.sleep(2)
# 右击
# ActionChains(driver).context_click(d).perform()
# ActionChains(driver).release(jp).perform()
ActionChains(driver)
day3= driver.find_element(By.ID,'kw')
day3.send_keys('webduan')
day3.send_keys(Keys.ENTER)
time.sleep(2)
driver.find_element(By.NAME,'tj_settingicon').click()
driver.find_element(By.CLASS_NAME,'set').click()
time.sleep(5)
yyy=driver.find_element(By.NAME,'')
time.sleep(3)
